package com.cty.mapper;

import com.cty.pojo.Role;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @Auther: cty
 * @Date: 2020/4/1 15:30
 * @Description:
 * @version: 1.0
 */
public interface RoleMapper {

    @Select("select * from role limit #{0}, #{1}")
    List<Role> selByPage(int pageStart, int pageSize);

    @Select("select count(*) from role")
    int selCount();

    @Update("update role set name=#{name}, sort=#{sort}, remark=#{remark} where id=#{id}")
    int updRole(Role role);
}
